#coding=utf-8
#!/usr/bin/python
"""

循环 指针赋值
和
拷贝

# cd /d D:\python2.6.6\dev_test 

import copy  
copy.coyp()来实现  变量赋值是引用传递

"""


loop_dict = {'abc':'def','ccc':'ddd','com':'net'}
to_dict = {'key':'kk','val':'vv'}
to_list=[]

for v,k in loop_dict.items():
    #to_dict={}      #关键语法 去掉结果就不一样了
    to_dict['key'] = k
    to_dict['val'] = v
    #添加
    to_list.append( to_dict  )


print to_list